package com.budwk.app.exception;


/**
 * @author ZY.Wang
 * @since 2023/5/13
 * <p>
 * 用于从service层直接返回结果到前端
 */
public class Asserts {

    public static void fail(String message) {
        throw new ServiceException(message);
    }

    public static void fail(Integer code, String message) {
        throw new ServiceException(code, message);
    }
}
